package itheima.d11;

public class Test {
    public static void recommend(int gender) {
        switch (gender) {
            case 1:
                System.out.println("推荐电影《唐顿庄园》");
                break;
            case 2:
                System.out.println("推荐电影《唐顿庄园》");
                break;
            default:
                System.out.println("推荐电影《唐顿庄园》");
        }

    }
    public static void recommend2(int gender) {
        switch (gender) {
            case 1:
                System.out.println("推荐电影《唐顿庄园》");
                break;
            case 2:
                System.out.println("推荐电影《唐顿庄园》");
                break;
            default:
                System.out.println("推荐电影《唐顿庄园》");
        }

    }
    public static void recommendMovie(SexEnum gender) {
        switch (gender) {
            case  BOY:
                System.out.println("推荐电影《唐顿庄园》");
                break;
            case  GIRL:
                System.out.println("推荐电影《斗破苍穹》");
                break;
            default:
                System.out.println("推荐电影《红楼梦》");
        }
    }

    public static void main(String[] args) {
        recommendMovie(SexEnum.BOY);
        recommendMovie(SexEnum.GIRL);
    }
}
